package bb.lanxing.model.json;

import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
import java.util.List;

public class UserBean implements Parcelable {
    public static final Parcelable.Creator<UserBean> CREATOR = new Parcelable.Creator<UserBean>() {
        @Override
        public UserBean createFromParcel(Parcel source) {
            return new UserBean(source);
        }

        @Override
        public UserBean[] newArray(int size) {
            return new UserBean[size];
        }
    };
    private String avatar;
    private String city;
    private String license_number;
    private String main_team;
    private List<MedalSmallBean> medal_small;
    private String pro_name;
    private String province;
    private int sex;
    private int ulevel;
    private int userid;
    private String username;

    @Override
    public int describeContents() {
        return 0;
    }

    public UserBean() {
    }

    protected UserBean(Parcel in2) {
        this.username = in2.readString();
        this.city = in2.readString();
        this.ulevel = in2.readInt();
        this.province = in2.readString();
        this.pro_name = in2.readString();
        this.userid = in2.readInt();
        this.main_team = in2.readString();
        this.sex = in2.readInt();
        this.avatar = in2.readString();
        this.license_number = in2.readString();
        ArrayList arrayList = new ArrayList();
        this.medal_small = arrayList;
        in2.readList(arrayList, MedalSmallBean.class.getClassLoader());
    }

    public String getUsername() {
        return this.username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCity() {
        return this.city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public int getUlevel() {
        return this.ulevel;
    }

    public void setUlevel(int ulevel) {
        this.ulevel = ulevel;
    }

    public String getProvince() {
        return this.province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getPro_name() {
        return this.pro_name;
    }

    public void setPro_name(String pro_name) {
        this.pro_name = pro_name;
    }

    public int getUserid() {
        return this.userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getMain_team() {
        return this.main_team;
    }

    public void setMain_team(String main_team) {
        this.main_team = main_team;
    }

    public int getSex() {
        return this.sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return this.avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getLicense_number() {
        return this.license_number;
    }

    public void setLicense_number(String license_number) {
        this.license_number = license_number;
    }

    public List<MedalSmallBean> getMedal_small() {
        return this.medal_small;
    }

    public void setMedal_small(List<MedalSmallBean> medal_small) {
        this.medal_small = medal_small;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.username);
        dest.writeString(this.city);
        dest.writeInt(this.ulevel);
        dest.writeString(this.province);
        dest.writeString(this.pro_name);
        dest.writeInt(this.userid);
        dest.writeString(this.main_team);
        dest.writeInt(this.sex);
        dest.writeString(this.avatar);
        dest.writeString(this.license_number);
        dest.writeList(this.medal_small);
    }

    public static class MedalSmallBean implements Parcelable {
        public static final Parcelable.Creator<MedalSmallBean> CREATOR = new Parcelable.Creator<MedalSmallBean>() {
            @Override
            public MedalSmallBean createFromParcel(Parcel source) {
                return new MedalSmallBean(source);
            }

            @Override
            public MedalSmallBean[] newArray(int size) {
                return new MedalSmallBean[size];
            }
        };
        private int mid;
        private int mlevel;
        private String url;

        @Override
        public int describeContents() {
            return 0;
        }

        public String getUrl() {
            return this.url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public int getMlevel() {
            return this.mlevel;
        }

        public void setMlevel(int mlevel) {
            this.mlevel = mlevel;
        }

        public int getMid() {
            return this.mid;
        }

        public void setMid(int mid) {
            this.mid = mid;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.url);
            dest.writeInt(this.mlevel);
            dest.writeInt(this.mid);
        }

        public MedalSmallBean() {
        }

        protected MedalSmallBean(Parcel in2) {
            this.url = in2.readString();
            this.mlevel = in2.readInt();
            this.mid = in2.readInt();
        }
    }
}
